package com.patentbackend.patentmanage.converter; // 根据您的项目结构调整包名

import com.patentbackend.patentmanage.dto.request.RegisterRequest;
import com.patentbackend.patentmanage.dto.UserDTO;

public class UserConverter {
    public static RegisterRequest convertToRegisterRequest(UserDTO userDTO) {
        RegisterRequest request = new RegisterRequest();
        request.setUsername(userDTO.getUsername());
        request.setEmail(userDTO.getEmail());
        request.setPassword(userDTO.getPassword());
        // 设置其他必要的字段
        return request;
    }
}